﻿using FFIV.Lib.BusinessRules;
using FFIV.Lib.IView.Articles;

namespace FFIV.Lib.Controlers.Articles
{
	public class ArticleLatestTopTwentyController
	{
		private readonly IArticlesList m_List;
		private readonly IArticlesMiniList m_MiniList;

		public ArticleLatestTopTwentyController(IArticlesList list, IArticlesMiniList miniList)
		{
			m_List = list;
			m_MiniList = miniList;
		}

		public void PageLoad()
		{
			m_List.Articles = ArticlesRules.GetLatestArticleByNumber();
			m_MiniList.Articles = ArticlesRules.GetFavorArticles();
		}
	}
}
